import request from '@/utils/request'
// 添加角色
export function add(data) {
  return request({
    url: '/user/manager/role/add',
    method: 'post',
    data
  })
}

// 修改角色
export function edit(data) {
  return request({
    url: '/user/manager/role/modify',
    method: 'post',
    data
  })
}


//角色列表查询
export function list(data) {
  return request({
    url: '/user/manager/role/list',
    method: 'post',
    data
  })
}



// 删除角色
export function del(data) {
  return request({
    url: '/user/manager/role/del',
    method: 'post',
    data
  })
}


// 配置权限
export function set(data) {
  return request({
    url: '/user/manager/role/grant/perm',
    method: 'post',
    data
  })
}


// 获取某角色的权限
export function getRoleBtns(data) {
  return request({
    url: '/user/manager/get/perms/byRole',
    method: 'post',
    data
  })
}
